<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATGeometrySet/XSpiral2dBase.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_3ae1ea863de6943fe2c5c18439480f66.html">ATGeometrySet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">XSpiral2dBase.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span>BEGIN_ATEC_NAMESPACE</div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="../../d0/df8/struct_x_spiral2d_base.html">   10</a></span><span class="keyword">struct </span>ATGEOSET_EXPORT <a class="code hl_struct" href="../../d0/df8/struct_x_spiral2d_base.html">XSpiral2dBase</a> : VectorIntegrand</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span>{</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_Unknown = 0;</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_Clothoid = 10;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_Bloss = 11;</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_Biquadratic = 12;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_Cosine = 13;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_Sine = 14;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_Viennese = 20;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TransitionType_WeightedViennese = 21;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="keyword">public</span>: <span class="keyword">static</span> XSpiral2dBaseP Create(<span class="keywordtype">int</span> transitionType);</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    <span class="keywordtype">double</span> mTheta0, mTheta1;</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    <span class="keywordtype">double</span> mCurvature0, mCurvature1;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keywordtype">double</span> mLength;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    <a class="code hl_struct" href="../../d0/df8/struct_x_spiral2d_base.html">XSpiral2dBase</a>();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> EvaluateVectorIntegrand(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> *pF) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetVectorIntegrandCount() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>    <span class="keyword">virtual</span> XSpiral2dBaseP Clone() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    <span class="keyword">virtual</span> <span class="keywordtype">double</span> DistanceToLocalAngle(<span class="keywordtype">double</span> distance) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>    <span class="keyword">virtual</span> <span class="keywordtype">double</span> DistanceToCurvature(<span class="keywordtype">double</span> distance) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    <span class="keyword">virtual</span> <span class="keywordtype">double</span> DistToCurvatureDerivative(<span class="keywordtype">double</span> distance)  <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  GetTransitionTypeCode() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor">#define DECLARE_DSPIRAL2DBASE_OVERRIDES \</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="preprocessor">    virtual double DistanceToLocalAngle  (double distance) const override;\</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor">    virtual double DistanceToCurvature   (double distance) const override;\</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">    virtual XSpiral2dBaseP Clone() const override;\</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="preprocessor">    virtual double DistToCurvatureDerivative(double distance)  const override;\</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="preprocessor">    virtual int  GetTransitionTypeCode() const override;</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="../../d0/df8/struct_x_spiral2d_base.html#a9cb9b74cb6b1e4cd1048e0a7706bf882">   66</a></span>    <span class="keywordtype">double</span> <a class="code hl_function" href="../../d0/df8/struct_x_spiral2d_base.html#a9cb9b74cb6b1e4cd1048e0a7706bf882">FractionToDistance</a>(<span class="keywordtype">double</span> fraction) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    <span class="keywordtype">bool</span> SetBearingAndCurvatureLimits (<span class="keywordtype">double</span>  theta0,</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>        <span class="keywordtype">double</span>  curvature0,</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>        <span class="keywordtype">double</span>  theta1,</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>        <span class="keywordtype">double</span>  curvature1</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>        );</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="../../d0/df8/struct_x_spiral2d_base.html#af366faaa4f38c160eb956becd26bae7e">   96</a></span>    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d0/df8/struct_x_spiral2d_base.html#af366faaa4f38c160eb956becd26bae7e">LineSpiralArcSpiralLineTransition</a></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    (</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>        XPoint3dCR lineAPoint,</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>        XPoint3dCR lineBPoint,</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>        XPoint3dCR lineLineIntersection,</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>        <span class="keywordtype">double</span>     radius,</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>        <span class="keywordtype">double</span>      lengthA,</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>        <span class="keywordtype">double</span>     lengthB,</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>        <a class="code hl_struct" href="../../d0/df8/struct_x_spiral2d_base.html">XSpiral2dBase</a> &amp;spiralA,</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>        <a class="code hl_struct" href="../../d0/df8/struct_x_spiral2d_base.html">XSpiral2dBase</a> &amp;spiralB,</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>        XPoint3dR  lineToSpiralA,</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>        XPoint3dR  lineToSpiralB,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>        XPoint3dR  spiralAToArc,</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>        XPoint3dR  spiralBToArc,</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>        XEllipse3dR arc</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    );</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>};</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span><span class="keyword">struct </span>ATGEOSET_EXPORT XSpiral2dClothoid:<a class="code hl_struct" href="../../d0/df8/struct_x_spiral2d_base.html">XSpiral2dBase</a></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>{</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    XSpiral2dClothoid();</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    DECLARE_DSPIRAL2DBASE_OVERRIDES</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>};</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="../../d9/d5e/struct_x_spiral2d_placement.html">  126</a></span><span class="keyword">struct </span>ATGEOSET_EXPORT <a class="code hl_struct" href="../../d9/d5e/struct_x_spiral2d_placement.html">XSpiral2dPlacement</a></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>{</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>    XSpiral2dBaseP spiral;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    <a class="code hl_struct" href="../../dd/d69/struct_transform.html">Transform</a> frame;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    <span class="keywordtype">double</span> fractionA;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    <span class="keywordtype">double</span> fractionB;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>    <a class="code hl_struct" href="../../d9/d5e/struct_x_spiral2d_placement.html">XSpiral2dPlacement</a>();</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>    <a class="code hl_struct" href="../../d9/d5e/struct_x_spiral2d_placement.html">XSpiral2dPlacement</a>(XSpiral2dBaseCR source, TransformCR frame, <span class="keywordtype">double</span> fractionA, <span class="keywordtype">double</span> fractionB);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>    <a class="code hl_struct" href="../../d9/d5e/struct_x_spiral2d_placement.html">XSpiral2dPlacement</a>(XSpiral2dBaseP _spiral, TransformCR frame, <span class="keywordtype">double</span> fractionA, <span class="keywordtype">double</span> fractionB);</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>    <a class="code hl_struct" href="../../d9/d5e/struct_x_spiral2d_placement.html">~XSpiral2dPlacement</a>();</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="../../d9/d5e/struct_x_spiral2d_placement.html#a513fb12e3ef8315f8761fd8416482f1a">  151</a></span>    <a class="code hl_struct" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> <a class="code hl_function" href="../../d9/d5e/struct_x_spiral2d_placement.html#a513fb12e3ef8315f8761fd8416482f1a">FractionToPoint</a>(<span class="keywordtype">double</span> fraction) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>};</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>END_ATEC_NAMESPACE</div>
<div class="ttc" id="astruct_transform_html"><div class="ttname"><a href="../../dd/d69/struct_transform.html">Transform</a></div><div class="ttdoc">大小为3*4的变换矩阵</div><div class="ttdef"><b>Definition:</b> XTransform.h:12</div></div>
<div class="ttc" id="astruct_x_point3d_html"><div class="ttname"><a href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a></div><div class="ttdoc">3D空间点类</div><div class="ttdef"><b>Definition:</b> XPoint3d.h:12</div></div>
<div class="ttc" id="astruct_x_spiral2d_base_html"><div class="ttname"><a href="../../d0/df8/struct_x_spiral2d_base.html">XSpiral2dBase</a></div><div class="ttdoc">2D螺旋线基类</div><div class="ttdef"><b>Definition:</b> XSpiral2dBase.h:11</div></div>
<div class="ttc" id="astruct_x_spiral2d_base_html_a9cb9b74cb6b1e4cd1048e0a7706bf882"><div class="ttname"><a href="../../d0/df8/struct_x_spiral2d_base.html#a9cb9b74cb6b1e4cd1048e0a7706bf882">XSpiral2dBase::FractionToDistance</a></div><div class="ttdeci">double FractionToDistance(double fraction) const</div><div class="ttdoc">比例到距离</div></div>
<div class="ttc" id="astruct_x_spiral2d_base_html_af366faaa4f38c160eb956becd26bae7e"><div class="ttname"><a href="../../d0/df8/struct_x_spiral2d_base.html#af366faaa4f38c160eb956becd26bae7e">XSpiral2dBase::LineSpiralArcSpiralLineTransition</a></div><div class="ttdeci">static bool LineSpiralArcSpiralLineTransition(XPoint3dCR lineAPoint, XPoint3dCR lineBPoint, XPoint3dCR lineLineIntersection, double radius, double lengthA, double lengthB, XSpiral2dBase &amp;spiralA, XSpiral2dBase &amp;spiralB, XPoint3dR lineToSpiralA, XPoint3dR lineToSpiralB, XPoint3dR spiralAToArc, XPoint3dR spiralBToArc, XEllipse3dR arc)</div><div class="ttdoc">直线过渡</div></div>
<div class="ttc" id="astruct_x_spiral2d_placement_html"><div class="ttname"><a href="../../d9/d5e/struct_x_spiral2d_placement.html">XSpiral2dPlacement</a></div><div class="ttdoc">放置2D螺旋线</div><div class="ttdef"><b>Definition:</b> XSpiral2dBase.h:127</div></div>
<div class="ttc" id="astruct_x_spiral2d_placement_html_a513fb12e3ef8315f8761fd8416482f1a"><div class="ttname"><a href="../../d9/d5e/struct_x_spiral2d_placement.html#a513fb12e3ef8315f8761fd8416482f1a">XSpiral2dPlacement::FractionToPoint</a></div><div class="ttdeci">XPoint3d FractionToPoint(double fraction) const</div><div class="ttdoc">比例到点</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
